package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dto.ProductRecommendDTO;
import com.sc.nft.entity.MallRecommend;
import java.lang.Object;

import com.sc.nft.entity.vo.mall.RecommendActivityPageVO;
import com.sc.nft.enums.ApprovalStatusEnum;
import com.sc.nft.enums.ProductTypeEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 推荐商品表(sc_mall_recommend)数据Mapper
 *
 * @author zxy
 * @since 2023-05-15 15:26:29
 * @description 活动推荐表
*/
@Mapper
public interface MallRecommendMapper extends BaseMapper<MallRecommend> {

    IPage<ProductRecommendDTO> getProductRecommend(Page page , @Param("activityType") Integer activityType, @Param("type")Integer type,
                                                   @Param("status")Boolean status, @Param("daoId")Long daoId,@Param("name") String name);

    IPage<RecommendActivityPageVO> recommendPage(Page page, @Param("activityType")Integer activityType,  @Param("type")Integer type,@Param("productName") String productName);
}
